﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using digitwhu.Models;
using digitwhu.Models.Repositorys;
using digitwhu.Helper;
using System.Runtime.Serialization.Json;
using System.Runtime.Serialization;

namespace digitwhu.Logic.ClassLibrary
{
    [DataContract]
    public class RUserInfo
    {
        //用户基本信息类，来自于表User和UserInfo
        //由于自动会包含外键实体，有时候会循环，导致无法序列化，自己拆分表User
        [DataMember]
        public int userId;
        [DataMember]
        public string nickName;
        [DataMember]
        public string emailAddress;
        [DataMember]
        public string lastLoginTime;
        [DataMember]
        public string dormName;
        [DataMember]
        public UserInfo userInfo;
        public RUserInfo() { }
    }
}